
<?php
/* phpinfo(); */

$conn = new mysqli("mysql", 'root', '123456', 'bdm315301260_db');
if(!$conn){
  die($conn->connect_error);
}
$result = mysqli_query($conn, "select * from user");
while ($arr = $result->fetch_assoc()) {
  var_dump($arr);
}
?>
